// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from '@/App'
import router from '@/router'
import store from '@/store'
import filters from '@/filters'
// import Vconsole from 'vconsole';
// new Vconsole();
// axios请求封装
import './request/index'
// 公共函数封装
import {utils} from '../src/utils'
// 移动端base.css
import './assets/css/base.css'
// 淘宝适配
import 'lib-flexible/flexible'
import {Toast, Dialog} from 'vant';
//
import vueWaves from './directive/waves/waves'

Vue.use(vueWaves)

Toast.setDefaultOptions({duration: 3000});
Vue.use(Toast);
Vue.use(Dialog);
// 挂载到Vue实例上
Object.defineProperty(Vue.prototype, '$utils', {
    value: utils
});

Vue.config.productionTip = false

for (let key in filters) {
    Vue.filter(key, filters[key])
}

/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    store,
    components: {App},
    template: `
        <components is="App"/>
    `
})
